#include "widget.h"
#include <QMessageBox>

c_server::c_server(QObject *parent) : QTcpServer(parent)
{
}

void c_server::incomingConnection(int socketid)
{
    (static_cast<Widget*>(parent()))->receiveSocket.setSocketDescriptor(socketid);
}
